package com.yuyang.springcloud.service;

import com.yuyang.springcloud.entities.CommonResult;
import com.yuyang.springcloud.service.impl.PaymentFallBackService;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author yu yang
 * @date 2022/11/4 -15:07
 */
@FeignClient(value = "nacos-provider-payment",fallback = PaymentFallBackService.class)
public interface PaymentService {
    @GetMapping("/paymentSQL/{id}")
    CommonResult getPayment(@PathVariable("id") Long id);
}
